GXCleanupStartSendPage
QuickDraw GX sends theGXCleanupStartSendPage
message when an operation that has to be undone fails during the processing of aGXStartSendPage
message. You need to override theGXCleanupStartSendPage
message if you have overridden theGXStartSendPage
message and your override contains code that can fail, such as a memory allocation or device initialization. Your override of theGXCleanupStartSendPage
message must match the following formal declaration:
void MyCleanupStartSendPage (void);DESCRIPTION
When an operation fails in your override of theGXStartSendPage
message, you need to call theGXCleanupStartSendPage
function.When you call the
GXCleanupStartSendPage
function, QuickDraw GX sends theGXCleanupStartSendPage
message to any message handlers that follow your printing extension or printer driver in the message chain. Each message handler is responsible for cleaning up any operations that it performed in itsGXStartSendPage
override. Usually this involves deallocating any storage that you allocated in your override of theGXStartSendPage
message.The
GXCleanupStartSendPage
message follows the same path through the message chain as did the originalGXStartSendPage
message, which allows the cleaning up to occur in the correct order.The default implementation of the
GXCleanupStartSendPage
message disposes of memory allocated by the default implementation of theGXStartSendPage
message.SPECIAL CONSIDERATIONS
You never send theGXCleanupStartSendPage
message yourself; however, you can call theGXCleanupStartSendPage
function, which then sends this message.You must forward the
GXCleanupStartSendPage
message to allow other message handlers to clean up any storage that they allocated in response to theGXStartSendPage
message.SEE ALSO
TheGXCleanupStartSendPage
function is described on page 5-37 in the chapter "Printing Functions for Message Overrides."The
GXStartSendPage
message is described in the previous section.
Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help